package com.fowo.api.model.inventory.batch.no;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import javax.validation.constraints.*;
import lombok.Data;

/** 入库批次 导入导出辅助模型 */
@Data
public class InventoryBatchNoExcelPo {

  @ExcelProperty(value = "库存金额")
  private java.math.BigDecimal stockAmount;

  @ExcelProperty(value = "自定义单号子表id")
  private Long customBdId;

  @ExcelProperty(value = "自定义单号id")
  private Long customId;

  @Size(max = 50, message = "库龄批次号长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "库龄批次号")
  private String stockAgeBatchNo;

  @ExcelProperty(value = "可用数量")
  private java.math.BigDecimal availableQty;

  @Size(max = 50, message = "FNSKU长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "FNSKU")
  private String fnSku;

  @Size(max = 50, message = "店铺id长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "店铺id")
  private String shopId;

  @ExcelProperty(value = "组织内码")
  private Long orgId;

  @ExcelProperty(value = "数据版本")
  private Long version;

  @ExcelProperty(value = "在途数量")
  private java.math.BigDecimal wayQty;

  @ExcelProperty(value = "残次数量")
  private java.math.BigDecimal defectQty;

  @ExcelProperty(value = "陈列数量")
  private java.math.BigDecimal displayQty;

  @ExcelProperty(value = "锁库数量")
  private java.math.BigDecimal lockQty;

  @ExcelProperty(value = "辅助数量")
  private java.math.BigDecimal auxQty;

  @ExcelProperty(value = "辅助计量内码")
  private Long auxId;

  @ExcelProperty(value = "库存数量")
  private java.math.BigDecimal stockQty;

  @DateTimeFormat("yyyy年MM月dd日HH:mm:ss")
  @ExcelProperty(value = "有效期至")
  private java.util.Date expiryDate;

  @DateTimeFormat("yyyy年MM月dd日HH:mm:ss")
  @ExcelProperty(value = "生产日期")
  private java.util.Date productionDate;

  @ExcelProperty(value = "保质期(天)")
  private Long shelfLife;

  @Size(max = 50, message = "批号长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "批号")
  private String batchNo;

  @ExcelProperty(value = "物料内码")
  private Long itemId;

  @ExcelProperty(value = "项目内码")
  private Long projectId;

  @ExcelProperty(value = "仓库内码")
  private Long stockId;
}
